package cn.com.sise.service.impl;

import cn.com.sise.mapper.FreshmanMapper;
import cn.com.sise.pojo.Freshman;
import cn.com.sise.service.FreshmanService;
import cn.com.sise.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class FreshmanServiceImpl implements FreshmanService {

    public FreshmanMapper findFreshmanByMultiCondition(String ticketNumber, String idCard, String stuNo) {
        SqlSession sqlSession= MybatisUtils.getSession();
        FreshmanMapper freshmanMapper=sqlSession.getMapper(FreshmanMapper.class);
        Freshman freshman= (Freshman) freshmanMapper.findFreshmanByMultiCondition(ticketNumber,idCard,stuNo);
        return (FreshmanMapper) freshman;
    }

    public int insertFreshman(Freshman freshman) {
        return 0;
    }

    public int updateFreshman(Freshman freshman) {
        return 0;
    }

    public int deleteFreshman(String freshman) {
        return 0;
    }
}
